Skip to content

app: implement connector() and connectors - #287

Merged
bajtos merged 1 commit into
masterfrom
feature/connector-registry
May 28, 2014
Merged

app: implement connector() and connectors#287
bajtos merged 1 commit into
masterfrom
feature/connector-registry

Conversation

@bajtos

@bajtos bajtos commented May 28, 2014

Copy link
Copy Markdown
Member

Allow browserified applications to explicitly register connectors
to use in data-sources via app.connector(name, exportsFromRequire).

Include built-in connectors like Memory and Remote in the registry.

Modify dataSourcesFromConfig() to resolve the connector via
app.connectors first and only then fall back to auto-require
the connector module.

/to @ritch please review. This change will allow full-stack apps to register datasources via app.dataSource without ugly hacks, see your comment.

Allow browserified applications to explicitly register connectors
to use in data-sources via `app.connector(name, exportsFromRequire)`.

Include built-in connectors like `Memory` and `Remote` in the registry.

Modify `dataSourcesFromConfig()` to resolve the connector via
`app.connectors` first and only then fall back to auto-require
the connector module.
@ritch

ritch commented May 28, 2014

Copy link
Copy Markdown
Member

LGTM

bajtos added a commit that referenced this pull request May 28, 2014
app: implement `connector()` and `connectors`
@bajtos
bajtos merged commit acf7af0 into master May 28, 2014
@bajtos
bajtos deleted the feature/connector-registry branch May 28, 2014 15:01
Comment thread test/app.test.js

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed this... but try and keep the test output clean in master. Its really hard to find these sometimes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an oversight, I don't rely on console logs in the tests I write. Fixed in 5b53da9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants